<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <title>信息录入</title>
        <meta name="viewport" content="width=device-width,initial-scale=1">
        <link rel="stylesheet" href="drive_information.css">
        <link rel="stylesheet" href="normalize.css">
        <link rel="stylesheet" href="../public_css/public_header.css">
    </head>
    <body>
        <header class=" public_header">

            <div class="public_header_return">
                <img src="../public_img/return.png" alt="" class="public_header_return" onclick="history.back(-1)">
                <p>约教信息</p>
            </div>
        </header>
        <section class="mainbody">
            <form class="information_collect">
                <span>姓名:</span>
                <input id="localStorage_teacher_name" class="message_input" disabled type="text">
                <br/>
                <span>电话:</span>
                <input id="localStorage_teacher_phone" class="message_input" disabled type="text">
                <br/>
                <span>接送地址:</span>
                <input id="address" class="message_input" type="text">
                <br/>
                <span>接送时间:</span>
                <input id="order_time" class="message_input" type="text" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                <br/>
                <input class="submit_final" type="button" value="付款" >
            </form>
        </section>
        <script src="jquery.min.js"></script>
        <script src="laydate/laydate.js"></script>
        <script src="picturefill.js"></script>
        <script src="../layer.js"></script>
        <script>

            function goback(){
                history.back();
            }
            $(function () {
                console.log(localStorage.teacher_name );
         $('#localStorage_teacher_name').val( localStorage.teacher_name );
            $('#localStorage_teacher_phone').val(localStorage.teacher_phone);

                $('.submit_final').click(function () {
                    var address = $('#address').val();
                    var order_time = $('#order_time').val();
                    if(address==''){
                        layer.msg('请输入地址');
                        return;
                    }
                    if(order_time==''){
                        layer.msg('请选择接送时间');
                        return;
                    }
                    localStorage.address=address;
                    localStorage.order_time=order_time;
                    window.location.href="../payment/02/teacher_pay.html"
                });
            })
        </script>

        <script>
            document.addEventListener("plusready", function() {
                // 注册返回按键事件
                plus.key.addEventListener('backbutton', function() {
                    window.history.back();
                }, false);
                //此处false代表不退出页面，如果为true回退到上一个一面
            });
        </script>
    </body>
</html>
